package com.c.yinyuezhushou.MRetrofit;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface RetrofitService {

    @GET("getCookie")
    Call<ResponseBody> getCk();

    @GET("Update")
    Call<ResponseBody> getUpdate(@Query("version") int ver);

    @GET("playlist/detail")
    Observable<PlayList> getPlaylist(@Query("id") long id);

    @GET("song/detail")
    Observable<getSongDetail> getSongDetail(@Query("ids") String id);

    @GET("song/url")
    Observable<getSongUrl> getSong(@Query("id") int id,@Query("br") int br);

    @GET("lyric")
    Observable<GetLyric> getLyric(@Query("id") int id);

    @GET("cloudsearch")
    Observable<getSearch> Search(@Query("keywords") String keywords,@Query("limit") int li,@Query("offset") int of);

}
